import 'package:flutter_taotaoshipin/generated/json/base/json_field.dart';
import 'package:flutter_taotaoshipin/generated/json/drama_titbit_list_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class DramaTitbitListEntity {
	int? id;
	@JSONField(name: "type_id")
	int? typeId;
	@JSONField(name: "drama_id")
	int? dramaId;
	String? title;
	String? img;
	@JSONField(name: "img_type")
	int? imgType;
	int? sort;
	String? vid;
	int? money;
	@JSONField(name: "is_pay")
	int? isPay;
	int? ctime;

	DramaTitbitListEntity();

	factory DramaTitbitListEntity.fromJson(Map<String, dynamic> json) => $DramaTitbitListEntityFromJson(json);

	Map<String, dynamic> toJson() => $DramaTitbitListEntityToJson(this);

	DramaTitbitListEntity copyWith({int? id, int? typeId, int? dramaId, String? title, String? img, int? imgType, int? sort, String? vid, int? money, int? isPay, int? ctime}) {
		return DramaTitbitListEntity()
			..id= id ?? this.id
			..typeId= typeId ?? this.typeId
			..dramaId= dramaId ?? this.dramaId
			..title= title ?? this.title
			..img= img ?? this.img
			..imgType= imgType ?? this.imgType
			..sort= sort ?? this.sort
			..vid= vid ?? this.vid
			..money= money ?? this.money
			..isPay= isPay ?? this.isPay
			..ctime= ctime ?? this.ctime;
	}

	@override
	String toString() {
		return jsonEncode(this);
	}
}